package com.rtp.transformer.fin.client;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.rtp.transformer.fin.client.model.AccountCategory;
import com.rtp.transformer.fin.client.model.GLItem;
 

public interface FinService extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static FinServiceAsync instance;
		public static FinServiceAsync getInstance(){
			if (instance == null) {
				instance = (FinServiceAsync) GWT.create(FinService.class);
				ServiceDefTarget target = (ServiceDefTarget) instance;
				target.setServiceEntryPoint(GWT.getModuleBaseURL() + "FinService");
			}
			return instance;
		}
	}
	
	public List<AccountCategory> findGLByMonth(String month,int pageSize, int startIndex);
	
	public Integer getGLCount();
	
	public List<GLItem> getGLItemById(Integer acId);
	 
}
